package org.example.mq.brokerserver.core;

import java.io.Serializable;
import java.util.UUID;

public class BasicProperties implements Serializable {
    private String routingKey;
    private String uuid;
    String master;
    // 这个属性表示消息是否要持久化. 1 表示不持久化, 2 表示持久化. (RabbitMQ 就是这样搞的....)
    private int deliverMode = 1;

    public int getDeliverMode() {
        return deliverMode;
    }

    public void setDeliverMode(int deliverMode) {
        this.deliverMode = deliverMode;
    }

    public String getRoutingKey() {
        return routingKey;
    }

    public void setRoutingKey(String routingKey) {
        this.routingKey = routingKey;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    @Override
    public String toString() {
        return "BasicProperties{" +
                "routingKey='" + routingKey + '\'' +
                ", uuid='" + uuid + '\'' +
                '}';
    }
}
